<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./syp/swiper-bundle.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        .one {
            width: 100%;
            height: 100px;
            background-color: #3c8cff;
            position: relative;
        }
        
        .one-right {
            position: absolute;
            right: 200px;
            width: 500px;
            height: 100px;
            display: flex;
            justify-content: space-between;
            font-size: 16px;
            color: white;
        }
        
        .one img {
            width: 170px;
            position: relative;
            left: 100px;
            top: 30px;
        }
        
        .swiper-container {
            width: 100%;
            height: 600px;
        }
        
        .swiper-slide img {
            height: 100%;
            width: 100%;
        }
        
        .swiper-pagination-bullet {
            width: 100px;
            height: 100px;
            /* background-image: ; */
        }
    </style>
</head>

<body>
    <div class="one">
        <a href="">
            <img src="./字节跳动/ia_10001.png" alt="">
        </a>
        <div class="one-right">
            <div>关于我们</div>
            <div>我们的产品</div>
            <div>新闻动态</div>
            <div>企业社会责任</div>
            <div>加入我们</div>
        </div>
    </div>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide"><img src="./字节跳动/ia_10013.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./字节跳动/ia_10014.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./字节跳动/ia_10015.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./字节跳动/ia_10016.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./字节跳动/ia_10017.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./字节跳动/ia_10018.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./字节跳动/ia_10019.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./字节跳动/ia_10020.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./字节跳动/ia_10021.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./字节跳动/ia_10022.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./字节跳动/ia_10023.jpg" alt=""></div>
        </div>
    </div>
    <div class="swiper-pagination"></div>
</body>

</html>
<script src="./syp/swiper-bundle.min.js"></script>
<script>
    var mySwiper = new Swiper('.swiper-container', {
        autoplay: true, //可选选项，自动滑动
        direction: "vertical",
        // loop: true,
        pagination: {
            el: '.swiper-pagination',
            clickable: true,
            renderBullet: function(index, className) {
                return '<span class="' + className + '"><image src="./字节跳动/' + (index + 1) + '.jpg"></span>';
            },
        },
    })
    var spanarray = document.querySelectorAll(".swiper-pagination-bullet");
    //如果你初始化时没有定义Swiper实例，后面也可以通过Swiper的HTML元素来获取该实例
    // new Swiper('.swiper-container')
    // var mySwiper = document.querySelector('.swiper-container').swiper
    // mySwiper.slideNext();
</script>
<!-- <script>
    window.onload = function() {
        var swiper = new Swiper('.swiper-container', {
            pagination: {
                el: '.swiper-pagination',
                clickable: true,
                renderBullet: function(index, className) {
                    return '<span class="' + className + '"><image src="upload/s0' + (index + 1) + '.jpg"></span>';
                },
            },
        });
    }
</script> -->